<?php
class Helper_Frame
{
	public $Width = 680;
	public $PaddingTop = 0;
	public $Title = "untitled";
	
	function writeTop()
	{
		echo '
			<ul class="common" style="float:left; clear:left; width:'.$this->Width.'px" class="common">
			<li style="float:left; clear:left; width:'.$this->Width.'px; height:2px; font-size:0px;">
				<ul class="common" style="float:left; clear:left; width:'.$this->Width.'px" class="common">
					<li style="float:left; clear:left; width:2px; height:2px; font-size:0px; background-image: url(\'/image/frame_corner.gif\'); background-position:left top; background-repeat: no-repeat;"></li>
					<li style="float:left; width:'.($this->Width-4).'px; height:2px; font-size:0px; background-image: url(\'/image/frame_border.gif\'); background-position:left top; background-repeat: repeat-x;"></li>
					<li style="float:right; clear:right; width:2px; height:2px; font-size:0px; background-image: url(\'/image/frame_corner.gif\'); background-position:right top; background-repeat: no-repeat; overflow-x:hidden;"></li>
				</ul>
			</li>
			<li style="float:left; clear:left; width:'.($this->Width-2).'px; border-left:solid 1px #f7b34f; border-right:solid 1px #f7b34f; background-color: #ffffff;">';	
	}
	
	
	function writeBottom()
	{
		echo '</li>
			<li style="float:left; clear:left; width:'.$this->Width.'px; height:2px; font-size:0px;">
				<ul class="common" style="float:left; clear:left; width:'.$this->Width.'px">
					<li style="float:left; clear:left; width:2px; height:2px; font-size:0px; background-image: url(\'/image/frame_corner.gif\'); background-position:left bottom; background-repeat: no-repeat;"></li>
					<li style="float:left; width:'.($this->Width-4).'px; height:2px; font-size:0px; background-image: url(\'/image/frame_border.gif\'); background-position:left bottom; background-repeat: repeat-x;"></li>
					<li style="float:right; clear:right; width:2px; height:2px; font-size:0px; background-image: url(\'/image/frame_corner.gif\'); background-position:right bottom; background-repeat: no-repeat;"></li>
				</ul>
			</li>
			</ul>';
	}
}
?>